using System;
using System.BusinessObjects.Data;
using System.Data;

namespace Blazing.BusinessObjects.Cms
{
    [Serializable]
    public class Theme : DataObject<Theme>
    {
        #region Properties
        public virtual int ID
        {
            get { return GetValue<int>("ID"); }
            set
            {
                BeginEdit();
                SetValue("ID", value);
            }
        }

        public virtual string Name
        {
            get { return GetValue<string>("Name"); }
            set
            {
                BeginEdit();
                SetValue("Name", value);
            }
        }

        public virtual string Path
        {
            get { return GetValue<string>("Path"); }
            set
            {
                BeginEdit();
                SetValue("Path", value);
            }
        }

        public virtual string Description
        {
            get { return GetValue<string>("Description"); }
            set
            {
                BeginEdit();
                SetValue("Description", value);
            }
        }

        [NonSerialized]
        Masterpage _masterPage;
        public virtual Masterpage Masterpage
        {
            get
            {
                return _masterPage;
            }
            set
            {
                BeginEdit();
                _masterPage = value;
            }
        }

        public virtual DateTime RowStamp
        {
            get { return GetValue<DateTime>("RowStamp"); }
            set
            {
                SetValue("RowStamp", value);
            }
        }
        #endregion

       
    }
}
